namespace Hygeia.Server.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class V_SYS_EMPLOYEE
    {
        public Guid? KeyID { get; set; }

        public decimal ID { get; set; }

        public decimal? ORGID { get; set; }

        [StringLength(38)]
        public string USERGUID { get; set; }

        [StringLength(50)]
        public string NAME { get; set; }

        public decimal? SEX { get; set; }

        public DateTime? BIRTHDAY { get; set; }

        [StringLength(50)]
        public string EMAIL { get; set; }

        [StringLength(50)]
        public string MOBILEPHONE { get; set; }

        [StringLength(50)]
        public string OFFICEPHONE { get; set; }

        [StringLength(50)]
        public string HOMEPHONE { get; set; }

        public decimal? DUTYID { get; set; }

        public decimal? SORTINDEX { get; set; }

        [Column(TypeName = "image")]
        public byte[] ELECTRONICSIGNATURE { get; set; }

        public DateTime? ADDDATE { get; set; }

        public DateTime? UPDATEDATE { get; set; }

        [StringLength(10)]
        public string ISDELETED { get; set; }

        [StringLength(200)]
        public string ADDRESS { get; set; }

        [StringLength(10)]
        public string ISDEPARTURE { get; set; }

        public decimal? DEPARTURETYPE { get; set; }

        public DateTime? DEPARTUREDATE { get; set; }

        [StringLength(500)]
        public string DEPARTUREREASON { get; set; }

        public string DEPARTUREREMARK { get; set; }

        public DateTime? ENTRYDATE { get; set; }

        public decimal? ANNUALLEAVE { get; set; }

        public decimal? OFFDAYS { get; set; }

        public decimal? USERID { get; set; }

        [StringLength(100)]
        public string EMERGENCYCONTACT { get; set; }

        [StringLength(50)]
        public string FIRSTNAME { get; set; }

        public string IMAGE { get; set; }

        [StringLength(50)]
        public string ORGNAME { get; set; }

        [StringLength(38)]
        public string ORGGUID { get; set; }
    }
}
